import Cookie from '@/plugins/js-cookie'

const TokenKey = 'Admin-Token'

export function getToken(): string {
  return Cookie.get(TokenKey) || ''
}

export function setToken(token: string) {
  const result = Cookie.set(TokenKey, token)
  return result
}

export function removeToken() {
  return Cookie.remove(TokenKey)
}
